package xju_5_6.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import xju_5_6.dao.StuDao;
import xju_5_6.entity.Stu;
import xju_5_6.service.StuService;

import java.io.FileNotFoundException;

@Controller
public class StuController {
    // 调用业务层
    @Autowired
    private StuService stuService;

    public void insert(Stu stu) throws FileNotFoundException {
        stuService.insert(stu);
    }

}
